package com.huaguoguo.cyg.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Controller
@Slf4j
public class PageController {

    @GetMapping(value = "{path}")
    public String hello(@PathVariable("path") String path, Model model){
        model.addAttribute("value","hello");
        return path;
    }

}
